//该文件用于配置动态路由


//路由懒加载

const basicLayout = () => import("../views/layout/basic-layout.vue")
const Home = () => import("../views/home/index.vue")
//预约挂号
const MakeRegister = () => import("../views/make/register/index.vue")
const MakeRegisterDetalis = () => import("../views/make/register/details.vue")

// 预约核酸检测
const MakeDetection = () => import("../views/make/detection/index.vue")
const MakeDetectionDetalis = () => import("../views/make/detection/detalis.vue")
//预约体检
const MakePhysical = () => import("../views/make/physical/index.vue")
const MakePhysicalDetalis = () => import("../views/make/physical/detalis.vue")
const MakePhysicalReport = () => import("../views/make/physical/report.vue")
//医生排班
const MakeDoctor = () => import("../views/make/doctor/index.vue")
const MakeDoctorView = () => import("../views/make/doctor/view.vue")
const MakeDoctorShutdown = () => import("../views/make/doctor/Shutdown.vue")
const MakeDoctorSet = () => import("../views/make/doctor/set.vue")

//门诊消费记录
const ExpenseConsumption = () => import("../views/expense/consumption/index.vue")
const ExpenseConsumptionDetails = () => import("../views/expense/consumption/detalis.vue")

//门诊充值记录
const ExpenseOutpatient = () => import("../views/expense/outpatient/index.vue")
const ExpenseOutpatientDetails = () => import("../views/expense/outpatient/dateils.vue")

//住院充值记录
const ExpenseRecharge = () => import("../views/expense/recharge/index.vue")
const ExpenseRechargeDetails = () => import("../views/expense/recharge/details.vue")

//住院消费纪录
const ExpenseConsum = () => import("../views/expense/consum/index.vue")
const ExpenseConsumDetails = () => import("../views/expense/consum/details.vue")

//退款记录
const ExpenseRefund = () => import("../views/expense/refund/index.vue")
const ExpenseRefundDetails = () => import("../views/expense/refund/details.vue")

//医生管理
const Doctor = () => import("../views/doctor/index.vue")
const DoctorDelete = () => import("../views/doctor/delete.vue")
const DoctorAdd = () => import("../views/doctor/add.vue")

//科室管理
const Department = () => import("../views/department/index.vue")
const DepartmentAddDepartment = () => import("../views/department/addDepartment.vue")

//体检套餐管理
const SetMeal = () => import("../views/setMeal/index.vue")
const SetMealAddMeal = () => import("../views/setMeal/addMeal.vue")
const SetMealProject = () => import("../views/setMeal/project.vue")
const SetMealAddProject = () => import("../views/setMeal/addProject.vue")
const SetMealTypeMeal = () => import("../views/setMeal/typeMeal.vue")
const SetMealAddMealType = () => import("../views/setMeal/addMealType.vue")

//健康百科
const Healthy = () => import("../views/healthy/index.vue")
const HealthyNewArticle = () => import("../views/healthy/newArticle.vue")

//就诊指南
const Guide = () => import("../views/guide/index.vue")
const GuideClassification = () => import("../views/guide/classification.vue")
const GuideAddGuide = () => import("../views/guide/addGuide.vue")

//医院导航
const Navigation = () => import("../views/navigation/index.vue")
const NavigationPark = () => import("../views/navigation/park.vue")

//医院简介
const Introduction = () => import("../views/introduction/index.vue")

//预约须知
const Notice = () => import("../views/notice/index.vue")

//管理员管理
const Administrator = () => import("../views/system/administrator/index.vue")
const AdministratorAdd = () => import("../views/system/administrator/add.vue")

//角色管理
const Role = () => import("../views/system/role/index.vue")
const RoleAddrole = () => import("../views/system/role/addRole.vue")

//职称管理
const Professional = () => import("../views/system/professional/index.vue")
const AddProfessional = () => import("../views/system/professional/addProfessional.vue")

//信息公告
const Public = () => import("../views/system/public/index.vue")
const AddPublic = () => import("../views/system/public/addPublic.vue")

//修改密码
const Modify = () => import("../views/system/modify/index.vue")

export default [
    {
        path: "/",
        name: "首页",
        redirect: "/home",
        component: basicLayout,
        label: "首页",
        icon: "icon-shouye",
        meta: {
            name: [[{ name: "首页" }]],

        },
        children: [
            {
                path: "/home",
                component: Home
            }
        ]
    },

    //预约管理
    {
        path: "/make",
        name: "预约管理",
        component: basicLayout,
        label: "预约管理",
        icon: "icon-yuyue",
        meta: {
            name: [[{ name: "预约管理" }]],

        },
        children: [
            //预约挂号
            {
                path: "make_register",
                name: "预约挂号",
                component: MakeRegister,
                label: "预约挂号",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "make_register_details",
                        name: "挂号详情",
                        component: MakeRegisterDetalis,
                        label: "挂号详情",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //预约核酸检测
            {
                path: "make_detection",
                name: "预约核酸检测",
                label: "预约核酸检测",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                component: MakeDetection,
                children: [
                    {
                        path: "make_detection_details",
                        name: "预约详情",
                        component: MakeDetectionDetalis,
                        label: "预约详情",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            // 预约体检
            {
                path: "make_physical",
                name: "预约体检",
                component: MakePhysical,
                label: "预约体检",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "make_physical_details",
                        name: "预约详情",
                        label: "预约详情",
                        component: MakePhysicalDetalis,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                    {
                        path: "make_physical_report",
                        label: "报告详情",
                        name: "报告详情",
                        component: MakePhysicalReport,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    }
                ]
            },
            //医生排班
            {
                path: "make_doctor",
                name: "医生排班",
                component: MakeDoctor,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                label: "医生排班",
                children: [
                    {
                        path: "make_doctor_view",
                        name: "查看排班",
                        label: "查看排班",
                        component: MakeDoctorView,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                    {
                        path: "make_doctor_shutdown",
                        name: "关闭预约",
                        label: "关闭预约",
                        component: MakeDoctorShutdown,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                    {
                        path: "make_doctor_set",
                        name: "设置排班",
                        label: "设置排班",
                        component: MakeDoctorSet,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },

        ]
    },
    //费用管理
    {
        path: "/expense",
        name: "费用管理",
        label: "费用管理",
        icon: "icon-fq_kucunfeiyong",
        component: basicLayout,
        meta: {
            name: [[{ name: "预约挂号" }]],

        },
        children: [
            //门诊消费记录
            {
                path: "expense_consumption",
                name: "门诊消费记录",
                label: "门诊消费记录",
                component: ExpenseConsumption,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "expense_consumption_details",
                        name: "订单详情",
                        label: "订单详情",
                        component: ExpenseConsumptionDetails,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //门诊充值记录
            {
                path: "expense_outpatient",
                name: "门诊充值记录",
                label: "门诊充值记录",
                component: ExpenseOutpatient,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "expense_outpatient_details",
                        name: "充值详情",
                        label: "充值详情",
                        component: ExpenseOutpatientDetails,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //住院充值记录
            {
                path: "expense_recharge",
                name: "住院充值记录",
                label: "住院充值记录",
                component: ExpenseRecharge,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "expense_recharge_details",
                        name: "充值详情",
                        label: "充值详情",
                        component: ExpenseRechargeDetails,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //住院消费记录
            {
                path: "expense_consum",
                name: "住院消费记录",
                component: ExpenseConsum,
                label: "住院消费记录",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "expense_consum_details",
                        name: "订单详情",
                        label: "订单详情",
                        component: ExpenseConsumDetails,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //退款记录
            {
                path: "expense_refund",
                name: "退款记录",
                component: ExpenseRefund,
                label: "退款记录",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "expense_refund_details",
                        name: "退款详情",
                        label: "退款详情",
                        component: ExpenseRefundDetails,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
        ]
    },
    //医院管理
    {
        path: "/doctor",
        name: "医院管理",
        component: basicLayout,
        label: "医院管理",
        icon: "icon-yiyuan",
        meta: {
            name: [[{ name: "预约挂号" }]],

        },
        children: [
            //医生管理
            {
                path: "doctor_delete",
                name: "医生管理",
                label: "医生管理",
                component: Doctor,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "doctor_delete",
                        name: "删除",
                        label: "删除",
                        component: DoctorDelete,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                    {
                        path: "doctor_add",
                        name: "新增医生信息",
                        label: "新增医生信息",
                        component: DoctorAdd,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    }
                ]
            },
            //科室管理
            {
                path: "doctor_department",
                name: "科室管理",
                component: Department,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                label: "科室管理",
                children: [
                    {
                        path: "doctor_department_adddepartment",
                        name: "新增科室信息",
                        label: "新增科室信息",
                        component: DepartmentAddDepartment,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //体检套餐管理
            {
                path: "doctor_setMeal",
                name: "体检套餐管理",
                component: SetMeal,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                label: "体检套餐管理",
                children: [
                    {
                        path: "doctor_setMeal_addMeal",
                        name: "新增套餐信息",
                        component: SetMealAddMeal,
                        label: "新增套餐信息",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                    {
                        path: "doctor_setMeal_project",
                        name: "体检项目管理",
                        component: SetMealProject,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                        label: "体检项目管理"
                    },
                    {
                        path: "doctor_setMeal_set",
                        name: "新增项目信息",
                        component: SetMealAddProject,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                        label: "新增项目信息",
                    },
                    {
                        path: "doctor_setMeal_typeMeal",
                        name: "套餐类型管理",
                        component: SetMealTypeMeal,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                        label: "套餐类型管理"
                    },
                    {
                        path: "doctor_setMeal_addMealType",
                        name: "新增套餐类型",
                        component: SetMealAddMealType,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                        label: "新增套餐类型"
                    },
                ]
            },
            //健康百科
            {
                path: "doctor_healthy",
                name: "健康百科",
                component: Healthy,
                label: "健康百科",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "doctor_healthy_newArticle",
                        name: "新增文章",
                        component: HealthyNewArticle,
                        label: "新增文章",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //就诊指南
            {
                path: "doctor_guide",
                name: "就诊指南",
                component: Guide,
                label: "就诊指南",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "doctor_guide_classification",
                        name: "新增分类",
                        component: GuideClassification,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                        label: "新增分类",
                    },
                    {
                        path: "doctor_guide_addGuide",
                        name: "新增项目",
                        component: GuideAddGuide,
                        label: "新增项目",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    }
                ]
            },
            //医院导航
            {
                path: "doctor_navigation",
                name: "医院导航",
                component: Navigation,
                label: "医院导航",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "doctor_navigation_park",
                        name: "新增院区",
                        component: NavigationPark,
                        label: "新增院区",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //医院简介
            {
                path: "doctor_introduction",
                name: "医院简介",
                component: Introduction,
                label: "医院简介",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
            },
            //预约须知
            {
                path: "doctor_notice",
                name: "预约须知",
                component: Notice,
                label: "预约须知",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
            },
        ]
    },
    //系统管理
    {
        path: "/adminis",
        name: "系统管理",
        component: basicLayout,
        label: "系统管理",
        icon: "icon-xitong",
        meta: {
            name: [[{ name: "预约挂号" }]],

        },
        children: [
            //管理员管理
            {
                path: "adminis_trator",
                name: "管理员管理",
                component: Administrator,
                label: "管理员管理",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
            },
            {
                path: "adminis_trator/adminis_trator_add",
                name: "新增管理员",
                component: AdministratorAdd,
                label: "新增管理员",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
            },
            //角色管理
            {
                path: "adminis_role",
                name: "角色管理",
                component: Role,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                label: "角色管理",
                children: [
                    {
                        path: "adminis_role_add",
                        name: "新增角色",
                        component: RoleAddrole,
                        label: "新增角色",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //职称管理
            {
                path: "adminis_professional",
                name: "职称管理",
                component: Professional,
                label: "职称管理",
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                children: [
                    {
                        path: "adminis_professional_add",
                        name: "新增职称",
                        component: AddProfessional,
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                        label: "新增职称",
                    },
                ]
            },
            //消息公告
            {
                path: "adminis_public",
                name: "消息公告",
                component: Public,
                meta: {
                    name: [[{ name: "预约挂号" }]],

                },
                label: "消息公告",
                children: [
                    {
                        path: "adminis_public_add",
                        name: "新增消息公告",
                        component: AddPublic,
                        label: "新增消息公告",
                        meta: {
                            name: [[{ name: "预约挂号" }]],

                        },
                    },
                ]
            },
            //修改密码
            {
                path: "adminis_modify",
                name: "修改密码",
                component: Modify,
                meta: {
                    name: [[{ name: "修改密码" }]],

                },
                label: "修改密码",
            },
        ]
    },
]